package org.nw.service.sys.impl;

import nc.vo.pub.AggregatedValueObject;
import nc.vo.pub.CircularlyAccessibleValueObject;

import org.nw.service.impl.AbsToftServiceImpl;
import org.nw.service.sys.ImportColumnService;
import org.nw.vo.HYBillVO;
import org.nw.vo.VOTableVO;
import org.nw.vo.sys.ImportColumnVO;
import org.springframework.stereotype.Service;


/**
 * 系统参数操作类
 * 
 * @author xuqc
 * 
 */
@Service
public class ImportColumnServiceImpl extends AbsToftServiceImpl implements ImportColumnService {

	private AggregatedValueObject billInfo;

	public AggregatedValueObject getBillInfo() {
		if(billInfo == null) {
			billInfo = new HYBillVO();
			VOTableVO childVO = new VOTableVO();
			childVO.setAttributeValue(VOTableVO.BILLVO, HYBillVO.class.getName());
			childVO.setAttributeValue(VOTableVO.HEADITEMVO, ImportColumnVO.class.getName());
			childVO.setAttributeValue(VOTableVO.PKFIELD, ImportColumnVO.PK_IMPORT_COLUMN);
			childVO.setAttributeValue(VOTableVO.ITEMCODE, "nw_import_column");
			childVO.setAttributeValue(VOTableVO.VOTABLE, "nw_import_column");
			CircularlyAccessibleValueObject[] childrenVO = { childVO };
			billInfo.setChildrenVO(childrenVO);
		}
		return billInfo;
	}
}
